from django.test import TestCase

# Create your tests here.
import json

with open('myapp/btc.json','r')as f:
    t=json.loads(f.read())['stats']
pt=[{'cion':1,'spot_price':i[1],'new_time':i[0]} for i in t]